<template>
  <div class="info-item">
    <header>
      <span class="label">{{ label }}</span>
    </header>
    <div class="content">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    label: {
      type: String,
      required: true
    }
  },
  data() {
    return {};
  },
  methods: {}
};
</script>

<style lang="scss" scoped>
.info-item {
  border: 1px solid rgba(230, 234, 238, 1);
  border-radius: 4px;
}
header {
  .label {
    line-height: 1;
    color: #333c48;
    padding: 2px 6px;
    border-radius: 0 11px 11px 0;
    background: #e2eaf3;
  }
}
.content {
  padding: 10px 6px;
}
</style>
